//正文部分div切换
function tab(der){
    var tabs = ["tab1","tab2","tab3","tab4"];
    for(var i =0;i<=3;i++){
        if(tabs[i]==der){
            document.getElementById(tabs[i]).style.display="block";
        }else{
            document.getElementById(tabs[i]).style.display="none";
        }
    }
}
//正文部分修饰
 var ordersellinfo = new Vue({
    el:'#ordersellinfo',
    //初始化数据类型
    data:{
        goodsType:[],
        item1:[],
        item2:[],
        item3:[],
        item4:[],
    },
    //时间提交方法
    methods:{},
    //页面加载完成后执行此方法
    created:function(){
        var _this = this;
        //横向菜单栏
        var goodsTypeList =[
            {name: "定点服务",href:"#", url: "#"},
            {name: "在线询价",href:"../home/bidding.html", url: "#"},
        ];
        _this.goodsType = goodsTypeList;
        //待付款
        var item1List = [
            {href:"../home/introduction.html",name:"订单编号：",namenum:"16031221",date:"成交时间：",datetime:"2017-11-13",val:[
                {href:"../home/introduction.html",src:"../images/kouhong.jpg_80x80.jpg",name:"美康粉",color:"颜色：12#川南玛瑙",explain:"包装：裸装",price:"330.00",symbol:"x ",symbolnum:"2",cargo:"退货/换货",val:[
                    {sum:"合计：",sumnum:"676.00",explain:" 含运费：",explainnum:"15.00",change:"更改价格"},
                ]},
            ]},
        ];
        _this.item1 = item1List;
        //已付款
        var item2List = [
            {href:"../home/introduction.html",name:"订单编号：",namenum:"16031222",date:"成交时间：",datetime:"2017-11-13",val:[
                {href:"../home/introduction.html",src:"../images/kouhong.jpg_80x80.jpg",name:"美康粉",color:"颜色：12#川南玛瑙",explain:"包装：裸装",price:"330.00",symbol:"x ",symbolnum:"2",cargo:"退货/换货",val:[
                    {sum:"合计：",sumnum:"676.00",explain:" 含运费：",explainnum:"15.00"},
                ]},
            ]},
        ];
        _this.item2 = item2List;
        //待发货
        var item3List = [
            {href:"../home/introduction.html",name:"订单编号：",namenum:"16031223",date:"成交时间：",datetime:"2017-11-13",val:[
                {href:"../home/introduction.html",src:"../images/kouhong.jpg_80x80.jpg",name:"美康粉",color:"颜色：12#川南玛瑙",explain:"包装：裸装",price:"330.00",symbol:"x ",symbolnum:"2",cargo:"退货/换货",val:[
                    {sum:"合计：",sumnum:"676.00",explain:" 含运费：",explainnum:"15.00"},
                ]},
            ]},
        ];
        _this.item3 = item3List;
        //交易完成
        var item4List = [
            {href:"../home/introduction.html",name:"订单编号：",namenum:"16031224",date:"成交时间：",datetime:"2017-11-13",val:[
                {href:"../home/introduction.html",src:"../images/kouhong.jpg_80x80.jpg",name:"美康粉",color:"颜色：12#川南玛瑙",explain:"包装：裸装",price:"330.00",symbol:"x ",symbolnum:"2",cargo:"退货/换货",val:[
                    {sum:"合计：",sumnum:"676.00",explain:" 含运费：",explainnum:"15.00"},
                ]},
            ]},
        ];
        _this.item4 = item4List;
    }

});